package com.sishu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author linyi
 * @date 2025-01-02 14:39:52
 * @description 交易记录表, 显示其交易记录
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("transactionrecord")
public class Transactionrecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String partyA;

    private int moneyA;


    private String partyB;

    private int moneyB;

    private Integer locationId;

    private String type;


    private String groupId;

    private String typeDescribe;

    private String userId;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

}
